Skip to content

Use TryNextMethod instead of Error in Intersection2 if at least one group is finite#113

Merged
fingolfin merged 1 commit into
gap-packages:masterfrom
stertooy:inters-trynext
Mar 31, 2026
Merged

Use TryNextMethod instead of Error in Intersection2 if at least one group is finite#113
fingolfin merged 1 commit into
gap-packages:masterfrom
stertooy:inters-trynext

Conversation

@stertooy
Copy link
Copy Markdown
Contributor

Related to the discussion in #111.

If we try to calculate Intersection( U, V ) where U and V do not normalise each other, then currently we throw an error. But if either U or V is finite, generic methods in GAP can (or should be able to) calculate this intersection.

If both U and V are infinite, we keep the error. GAP will most likely not be able to calculate the intersection, and will either throw an error itself or the command will run forever.

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 29, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 55.83%. Comparing base (7242fd6) to head (1b5e416).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #113      +/-   ##
==========================================
+ Coverage   55.82%   55.83%   +0.01%     
==========================================
  Files          87       87              
  Lines       12678    12681       +3     
==========================================
+ Hits         7078     7081       +3     
  Misses       5600     5600              
Files with missing lines Coverage Δ
gap/pcpgrp/inters.gi 97.95% <100.00%> (+0.06%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Contributor

@james-d-mitchell james-d-mitchell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a sensible change to me.

@fingolfin fingolfin merged commit cbce32f into gap-packages:master Mar 31, 2026
7 checks passed
@stertooy stertooy deleted the inters-trynext branch March 31, 2026 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants